<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        
        <title>Administrar Bases de Datos</title>
        <link rel="shortcut icon" href="../Data/images/Saved-Data-Utility.ico" type="image/x-icon"/>
        <link rel="stylesheet" href="../Data/CSS/content.css" type="text/css"/>
    
    </h:head>
    <h:body>
        <p:growl id="msgDB" showDetail="true" life="10000" autoUpdate="true"/>
        <h:form id ="DBForm"  prependId="false">
            <h:form >
                <p:panel header="CreateBD" collapsed="false" >
                    
                    <h:panelGrid columns="2">
                        <h:panelGrid columns="4" cellspacing="2">

                            <h:outputText value="Nombre: " />
                            <p:inputText value="#{creatingSquemaBean.name}" 
                                           required="true"/>

                            <h:outputText value="Cotejamiento: " />
                            <p:inputText value="#{creatingSquemaBean.collation}" 
                                           required="true"/>
                        </h:panelGrid>
                        
                        <p:button value="Crear" onclick=""></p:button>
                    </h:panelGrid>
                    
                </p:panel>
                
            </h:form>

            <br />

            <p:panel header="Selecci&oacute;n de Base de Datos">
                <h:form prependId="false">
                    <p:dataTable id="dataTable" var="car" value="#{tableSquema.schemas}" 
                             paginator="true" rows="15"
                             paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" 
                             rowsPerPageTemplate="5,10,15">
                    <f:facet name="header"> 
                        Tablas del Usuario
                   </f:facet>

                        <p:column headerText="Base de datos">  
                            <h:outputText value="#{car.name}" />  
                        </p:column>  

                        <p:column headerText="Cotejamiento">  
                            <h:outputText value="#{car.utf}" />  
                        </p:column>  

                        <p:column headerText="Tablas">  
                            <h:outputText value="#{car.table}" />  
                        </p:column>  
                    </p:dataTable>
                </h:form>

            </p:panel>
        </h:form>
    </h:body>
</html>
